axios.defaults.baseURL = 'http://58.240.26.230:18005/jeecg-boot/';
axios.defaults.timeout = 3000;
let getrequest=function get(url, params){
  return new Promise((resolve, reject) => {
	axios.get(axios.defaults.baseURL+url, { params })
	  .then(response => {
		resolve(response);
	  })
	  .catch(err => {
		reject(err);
	  })
  })
}

module.exports={
	getrequest:getrequest()
}